package com.zscat.mallplus.qsg;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zscat.mallplus.ums.entity.UmsMember;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 驾校订单对象
 */
@Data
@TableName("qsg_recharge_order")
public class QsgRechargeOrder {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("recharge_meal_id")
    private Long rechargeMealId;

    @TableField("meal_name")
    private String mealName;

    @TableField("member_id")
    private Long memberId;

    @TableField(exist = false)
    private String memberName;

    @TableField(exist = false)
    private BigDecimal allMoney;

    @TableField("order_status")
    private Integer orderStatus;

    @TableField("order_sn")
    private String orderSn;

    @TableField("price")
    private BigDecimal price;

    @TableField("create_datetime")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDatetime;

    private Long storeId;

    private BigDecimal giveMoney;

    private int isSharing;

    @TableField(exist = false)
    private String memberNickname;

    private BigDecimal profitSharingMoney;

    private String wxOrderSn;

    private String phone;

    @TableField(exist = false)
    private String storeName;
}
